Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run resolveUrl for protocol-relative urls #5530

Merged
merged 3 commits into from
Apr 26, 2019
Merged

Conversation

rictic
Copy link
Contributor

@rictic rictic commented Apr 25, 2019

This part of ABS_URL is trying to match on absolute paths, like /images/logo.png not protocol-relative urls like //example.com/images/logo.png

Upstreaming cl/245302268

This part of ABS_URL is trying to match on absolute paths, like `/images/logo.png` not protocol-relative urls like `//example.com/images/logo.png`

Upstreaming cl/245302268
Copy link
Contributor

@sorvell sorvell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems ok but should have a test.

lib/utils/resolve-url.js Show resolved Hide resolved
Also cleaned up a some over-aggressive modulizer escaping in resolveurl-elements.js
@rictic rictic requested a review from sorvell April 25, 2019 23:43
@rictic rictic merged commit 733cf68 into master Apr 26, 2019
@rictic rictic deleted the protocol-relative-resolve-url branch April 26, 2019 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants